package service;

import Impl.ManagerDao;
import Impl.ManagerDaoImpl;
import Impl.StudentDao;
import Impl.StudentDaoImpl;
import com.ny.entity.Manager;
import com.ny.entity.Student;

import java.sql.SQLException;

public class ManagerServiceImpl implements ManagerService {
    private ManagerDao managerDao = new ManagerDaoImpl();
    public ManagerServiceImpl() throws SQLException, ClassNotFoundException {
    }
    @Override
    public int add(Manager manager) throws SQLException, ClassNotFoundException {
        return managerDao.add(manager);
    }

    @Override
    public Manager login(String managerName, String managerPassword) throws SQLException {
        return managerDao.login(managerName,managerPassword);
    }
}
